//独热码6选1多路选择器
//a5,...,a0:位宽为k的多路输入信号
//s：选择信号
//b:输出
module Mux6a(a5,a4,a3,a2,a1,a0,s,b);
  parameter k=1;
  input [(k-1):0] a5,a4,a3,a2,a1,a0;
  input [5:0] s;
  output [(k-1):0] b;
  wire [k-1:0] ba,bb;
  assign b = ba | bb;
  Mux3 #(k) ma(a2,a1,a0,s[2:0],ba);
  Mux3 #(k) mb(a5,a4,a3,s[5:3],bb);
endmodule

